home *** CD-ROM | disk | FTP | other *** search
/ ASME's Mechanical Engine…ing Toolkit 1997 December / ASME's Mechanical Engineering Toolkit 1997 December.iso / c_lang / varinc.lzh / PAGE230.C < prev    next >
Text File  |  1979-11-30  |  277b  |  6 lines

  1. short matrix[2][3], row, col;
  2.  
  3. for (row = 0; row < 2; ++row)                       /* Loop through each row */
  4.    for (col = 0; col < 3; ++col)                    /*   and each column.    */
  5.       matrix[row][col] = row * 3 + col;                /* Assign this value. */
  6.